package ink.xiaobaibai.common;

import javafx.util.Pair;

/**
 * @description:
 * @author: 小白白
 * @create: 2021-08-04
 **/

public class MyPair<K, V> extends Pair<K, V> {

    public MyPair(K key, V value) {
        super(key, value);
    }

    @Override
    public int hashCode() {
        return super.getKey().hashCode();
    }

    @Override
    public boolean equals(Object o) {
        return super.getKey().equals(((MyPair) o).getKey());
    }

}
